package com.soecode.lyf.service.impl;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.soecode.lyf.dao.DeptDao;
import com.soecode.lyf.entity.Dept;
import com.soecode.lyf.service.DeptService;

@Service
public class DeptServiceImpl implements DeptService {

	private Logger logger = LoggerFactory.getLogger(this.getClass());

	// 注入Service依赖
	@Autowired
	private DeptDao deptDao;

	@Override
	public List<Dept> queryAllDept() {
		// TODO Auto-generated method stub
		return deptDao.queryAllDept();
	}

}
